/*
 *	Copyright (c) 2018 TDK Corporation.
 *	File Name:		aes_crypto.h
 *	Author:			pengbin
 *	Description:	AES crypto interface declaration
 *	History:		2019/02/21, create the file.
 */

#ifndef __AES_CRYPTO_H__
#define __AES_CRYPTO_H__

#ifdef __cplusplus
extern "C" {
#endif

void bt_create_master_key(const uint8_t *mac);
void bt_create_tag_master_key(const uint8_t *tag_mac, uint8_t *master_k);
int bt_encrypt_cfb(const uint8_t *in, uint8_t *out, size_t len);
int bt_decrypt_cfb(const uint8_t *in, uint8_t *out, size_t len, const uint8_t *master_k);

#ifdef __cplusplus
}
#endif

#endif
